#ifndef __MACROS_H__
#define __MACROS_H__

#define BV(val) (1 << (val))
#define max(val1 , val2) (((val1) > (val2)) ? (val1) : (val2))
#define min(val1 , val2) (((val1) < (val2)) ? (val1) : (val2))
#define sign(val) ((val) >= 0 ? 1 : -1)

#define _CAT(text1,text2)		text1##_##text2
#define CAT(text1,text2)		_CAT(text1,text2)

#endif // __MACROS_H__
